package com.ysd.shopcar.common;

import lombok.Data;

@Data
public class CommonException extends RuntimeException {
    private Integer errCode;
    private String errMsg;

    public CommonException() {
    }

    public CommonException(Integer errCode, String errMsg) {
        this.errCode = errCode;
        this.errMsg = errMsg;
    }

    @Override
    public String toString() {
        return "CommonException{" +
                "errCode='" + errCode + '\'' +
                ", errMsg='" + errMsg + '\'' +
                '}';
    }
}
